package com.zbh.uexam.controller;

import com.zbh.uexam.base.RestResponse;
import com.zbh.uexam.base.SystemCode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.rowset.BaseRowSet;

/**
 * @Author zhoubh
 * @Date 2021/3/31 23:05
 * @Version 1.0
 * @description: session控制器
 */

@RestController
@RequestMapping("/session")
public class SessionController {

    Logger logger = LoggerFactory.getLogger(SessionController.class);

    @RequestMapping(value = "/repeatUser")
    public RestResponse repeatUser() {
        logger.info("repeatUserControllerl来了");
        return RestResponse.fail(SystemCode.RepeatUser.getCode(), SystemCode.RepeatUser.getMessage());
    }

    @RequestMapping(value = "/invalid")
    public RestResponse invalid() {
        return RestResponse.fail(SystemCode.sessionValid.getCode(), SystemCode.sessionValid.getMessage());
    }

}
